<?php
/**************************************************
* PluginLotto.com                                 *
* Copyrights (c) 2005-2010. iZAP                  *
* All rights reserved                             *
***************************************************
* @author iZAP Team "<support@izap.in>"
* @link http://www.izap.in/
* @version 1.0
* Under this agreement, No one has rights to sell this script further.
* For more information. Contact "Tarun Jangra<tarun@izap.in>"
* For discussion about corresponding plugins, visit http://www.pluginlotto.com/pg/forums/
* Follow us on http://facebook.com/PluginLotto and http://twitter.com/PluginLotto
 */

global $CONFIG;

return array(
        'plugin'=>array(
                'name'=>"izap-social-auction",
                'version'=>"1.0",
                'title'=>"Offer article implementation",
                'url_title' => 'auctions',
                'objects'=>array(
                        'IzapSocialAuction'=>array('getUrl'=>"func_geturl_izap_offer_article",'class'=>"IzapSocialAuction", 'type'=>"object")
                ),

                'actions'=>array(
                        'auction/save' => array('file'=>"save.php", 'public'=>false, 'admin_only'=>false),
                        'auction/delete' => array('file'=>"delete.php", 'public'=>false, 'admin_only'=>false),
                        //'auction/makeanoffer' => array('file'=>"make_an_offer.php", 'public'=>true, 'admin_only'=>false),
                        'auction/sendtofriend' => array('file'=>"send_to_friend.php", 'public'=>true, 'admin_only'=>false),
                        'auction/bid' => array('file'=>"bid.php", 'public'=>false, 'admin_only'=>false),
                        'auction/close' => array('file'=>"close_it.php", 'public'=>false, 'admin_only'=>false),
                        'auction/payfee' => array('file'=>"pay_auction_fee.php", 'public'=>false, 'admin_only'=>false),
                        'auction/payfeepaypal' => array('file'=>"pay_auction_fee_notify_paypal.php", 'public'=>true, 'admin_only'=>false),
                ),

                'action_to_plugin_name' => array(
                        'auction' => 'izap-social-auction',
                ),

                'menu'=>array(
                        'pg/auctions'=>array('title'=>"izap_offer_article:articles",'public'=>true,'admin_only'=>false),
                ),

                'submenu'=>array(
                        'auctions'=>array(

                                'pg/auctions'=>array('title'=>"izap_offer_article:manage",'public'=>true,'admin_only'=>false, 'groupby' => 'PUBLIC'),

                                'pg/auctions/list_my'=>array('title'=>"izap_offer_article:myauctions",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner"),
                                'pg/auctions/list_bids_on'=>array('title'=>"izap_offer_article:currentbids",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner"),
                                'pg/auctions/list_won'=>array('title'=>"izap_offer_article:wonauctions",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner"),
                          
                                'pg/auctions/save'=>array('title'=>"izap_offer_article:add",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner_"),
                                'pg/auctions/list_open'=>array('title'=>"izap_offer_article:openauctions",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner_"),
                                'pg/auctions/list_closed'=>array('title'=>"izap_offer_article:closedauctions",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner_"),
                                'pg/auctions/list_pending'=>array('title'=>"izap_offer_article:pendingAuctions",'public'=>false,'admin_only'=>false, 'groupby'=>"auction_owner_"),

                        )
                ),

        ),
        'path'=>array(

                'www'=>array(
                        'page' => $CONFIG->wwwroot . 'pg/auctions/',
                        'images' => $CONFIG->wwwroot . 'mod/izap-social-auction/_graphics/',
                        'action' => $CONFIG->wwwroot . 'action/auction/',
                ),

                'dir'=>array(
                        'plugin'=>dirname(dirname(__FILE__))."/",
                        'actions'=>$CONFIG->pluginspath."izap-social-auction/actions/",
                        'class'=>dirname(__FILE__)."/classes/",
                        'functions'=>dirname(__FILE__)."/functions/",
                        'views'=>array(
                          'home'=>"izap-social-auction/",
                          'forms'=>"forms/izap-social-auction/",
                          'pages'=>"izap-social-auction/views/",
                          'river'=>"river/izap-social-auction/"),
                        'pages'=>dirname(dirname(__FILE__))."/pages/",
                ),

        ),

        'includes'=>array(
                dirname(__FILE__)  . '/functions' => array('functions_core.php'),
        ),
);